import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/6/29 19:41
 * @Version 1.0
 */
@SpringBootTest
public class demo {
    @Test
    public void demo1(){
        Map<Object, Object> map = new HashMap<>();
        map.put("name","张胜男");
        map.put("age","15");
        map.put("gfjhsd","脚垫");
        map.put("fds","割发代首");
        map.put("fsdfe","张胜男");
        map.put("grr","张胜男");
        map.put("rhewr","gfd");
        Iterator<Map.Entry<Object, Object>> iterator =
                map.entrySet().iterator();
        while (iterator.hasNext()){
            Map.Entry<Object, Object> next = iterator.next();
            System.out.println("key:"+next.getKey()+"---value:"+next.getValue());
        }
    }
}
